home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
install.z
/
install
Wrap
Text File
|
1998-10-20
|
13KB
|
265 lines
IIIINNNNSSSSTTTTAAAALLLLLLLL((((1111)))) IIIINNNNSSSSTTTTAAAALLLLLLLL((((1111))))
NNNNAAAAMMMMEEEE
install - install files in directories
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
////ssssbbbbiiiinnnn////iiiinnnnssssttttaaaallllllll _o_p_t_i_o_n_s _f_i_l_e ...
BBBBSSSSDDDD////GGGGNNNNUUUU SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
////ssssbbbbiiiinnnn////iiiinnnnssssttttaaaallllllll _o_p_t_i_o_n_s _f_i_l_e ... directory
////ssssbbbbiiiinnnn////iiiinnnnssssttttaaaallllllll _o_p_t_i_o_n_s file1 file2
////ssssbbbbiiiinnnn////iiiinnnnssssttttaaaallllllll _o_p_t_i_o_n_s -_d directories ...
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_I_n_s_t_a_l_l copies regular _f_i_l_e_s generated in a source tree into a target
directory. It can also create directories, links and special files in a
target directory. The target directory's pathname will be prefixed by
the value of the RRRROOOOOOOOTTTT environment variable. _I_n_s_t_a_l_l is most commonly
invoked from makefiles (see _m_a_k_e(1)).
If the RRRRAAAAWWWWIIIIDDDDBBBB environment variable is set, _i_n_s_t_a_l_l creates no files in
target directories; instead, it appends records describing the files that
it would have created to the installation database (IDB) named by
$$$$RRRRAAAAWWWWIIIIDDDDBBBB. When generating an IDB, either _i_n_s_t_a_l_l must be invoked under a
directory named ssssrrrrcccc, or the SSSSRRRRCCCC environment variable must be set and must
name an ancestor of the current working directory.
_I_n_s_t_a_l_l's options specify how to install, what type of file to create,
and where to install in the target tree. Options are collected from the
IIIINNNNSSSSTTTTOOOOPPPPTTTTSSSS environment variable, then from the command line. If
incompatible options are specified in IIIINNNNSSSSTTTTOOOOPPPPTTTTSSSS and the command line, the
command line options take precedence. Note that single-letter options
cannot be concatenated after a hyphen.
BSD/GNU compatibility (where the target file or directory is the last
argument) is supported in case none of the mandatory arguments (-f, -F,
or -dir) is provided. In this case the ----ssss option means strip.
The options are:
-m _m_o_d_e Set the mode of created files to _m_o_d_e, interpreted as an
octal number. The default mode for regular files and
directories is 755. The default mode for devices and
named pipes is 666. This option is ignored if given with
----llllnnnn or ----llllnnnnssss.
-u _o_w_n_e_r Set the owner of created files to _o_w_n_e_r, which is
interpreted first as a user name, then as a numeric user
ID if it fails to match known user names. If the
superuser invokes _i_n_s_t_a_l_l, the default owner is rrrrooooooootttt.
Otherwise the default owner is the effective user ID of
the invoker. This option is ignored if given with ----llllnnnn.
If $$$$RRRRAAAAWWWWIIIIDDDDBBBB is set, and ----llllnnnnssss is used, it is effectively
ignored, because _i_n_s_t(1m) does not support setting the
PPPPaaaaggggeeee 1111
IIIINNNNSSSSTTTTAAAALLLLLLLL((((1111)))) IIIINNNNSSSSTTTTAAAALLLLLLLL((((1111))))
owner on symlinks.
-g _g_r_o_u_p Set the group of created files to _g_r_o_u_p, which is
interpreted first as a group name, then as a numeric
group ID if it fails to match known group names. If the
superuser invokes _i_n_s_t_a_l_l, the default group is ssssyyyyssss.
Otherwise the default group is the effective group ID of
the invoker. This option is ignored if given with ----llllnnnn.
If $$$$RRRRAAAAWWWWIIIIDDDDBBBB is set, and ----llllnnnnssss is used, it is effectively
ignored, because _i_n_s_t(1m) does not support setting the
group on symlinks.
-idb _a_t_t_r_i_b_u_t_e Add an IDB _a_t_t_r_i_b_u_t_e to the records for files which
_i_n_s_t_a_l_l would have created in its normal mode. This
option may occur several times among the option
arguments.
-new By default, _i_n_s_t_a_l_l creates a regular file with the same
modification time (_m_t_i_m_e) as its source. This option
disables mtime preservation, resulting in each regular
file being installed with its mtime set by _i_n_s_t_a_l_l's
final write to it.
-o If a target exists, save it in the target directory with
a hard link named OOOOLLLLDDDD_f_i_l_e .
-O If the target exists, try to remove it. If it cannot be
unlinked, save it in the same manner as ----oooo.
-rawidb _i_d_b_p_a_t_h Change _i_n_s_t_a_l_l's mode from file creation to IDB
generation, so that it appends records to the file named
by _i_d_b_p_a_t_h. This option overrides the RRRRAAAAWWWWIIIIDDDDBBBB environment
variable.
-root _r_o_o_t_p_a_t_h Set the string prepended to all absolute pathnames
created by install to _r_o_o_t_p_a_t_h. This option overrides
the RRRROOOOOOOOTTTT environment variable.
-s Be silent. Older versions of _i_n_s_t_a_l_l printed verbose
information by default when installing. _I_n_s_t_a_l_l is now
silent by default, but this option remains for
compatibility.
-t Symbolically link targets to sources when installing
regular files.
-v Be verbose. This option causes _i_n_s_t_a_l_l to print a line
telling source and target pathnames for each file
installed.
PPPPaaaaggggeeee 2222
IIIINNNNSSSSTTTTAAAALLLLLLLL((((1111)))) IIIINNNNSSSSTTTTAAAALLLLLLLL((((1111))))
Only one of the following options may be specified for a given invocation
of _i_n_s_t_a_l_l, to install non-regular files:
-blk _m_a_j,_m_i_n[,_o_f_f]
Create a block device node with major device number _m_a_j
and minor number _m_i_n. If _m_i_n has the form
_l_o_w_m_i_n-_h_i_g_h_m_i_n, _i_n_s_t_a_l_l creates block device nodes for
minor numbers _l_o_w_m_i_n through _h_i_g_h_m_i_n, inclusive, forming
each node's name by concatenating _f_i_l_e and the minor
device number. If the optional offset is given, it is
added to the minor number (the offset may be negative).
This is primarily useful with the range form in scripts,
such as ////ddddeeeevvvv////MMMMAAAAKKKKEEEEDDDDEEEEVVVV. If the device exists, with the
correct type (block), and correct major and minor number,
it is left as is, and the ownership and permissions are
left unchanged. This also is useful in scripts where you
want to make sure that the device exists, but want to
preserve any local changes in owner and permissions. The
----OOOO and ----oooo options are not supported with this option.
-chr _m_a_j,_m_i_n[,_o_f_f]
Like ----bbbbllllkkkk, but creates character device nodes.
-c BSD old compatibility mode (ignored)
-dir (or -d for BSD/GNU compatibility)
Create directories named by concatenating $$$$RRRROOOOOOOOTTTT to the
_f_i_l_e arguments. When -dir is given, all the _f_i_l_e
arguments are taken as directories; files and directories
may not both be installed with the same command.
-fifo Create named pipes named by the _f_i_l_e arguments.
-ln _p_a_t_h Create hard links named by the _f_i_l_e arguments to the node
named by _p_a_t_h. If _p_a_t_h is a file, it will be linked to
_f_i_l_e. If you want the link to be from a file in the
directory of the -_f and -_F options you must preceed it by
the same directory string as for those options.
-lns _p_a_t_h Create symbolic links named by the _f_i_l_e arguments which
point to _p_a_t_h. If _p_a_t_h is a relative pathname, the
symbolic link will also be relative to the directory of
the -_f and -_F options.
This option may be used only when installing regular files:
-src _p_a_t_h Use _p_a_t_h as the source file's pathname when installing a
regular file. This option is useful for renaming a
source file in the target directory.
PPPPaaaaggggeeee 3333
IIIINNNNSSSSTTTTAAAALLLLLLLL((((1111)))) IIIINNNNSSSSTTTTAAAALLLLLLLL((((1111))))
One of the following two options must be used unless installing
directories with ----ddddiiiirrrr:
-f _d_i_r Install files in the target directory $$$${{{{RRRROOOOOOOOTTTT}}}}_d_i_r.
-F _d_i_r Like -_f, but creates any directories in the target
pathname which do not exist.
EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
To install several programs, issue:
install -f /etc mount umount
To install a file which has a different name in the target tree, and
which might be executing during installation, use:
install -F /etc -src Install -O install
This invocation creates disk device nodes, along with necessary
directories:
install -F /dev/dsk -m 600 -u root -g sys -blk 4,0-15 ips0d0s
BSD/GNU compatibility example:
install -m 775 -s file1 file2 file3 /usr/gnu/bin
SSSSEEEEEEEE AAAALLLLSSSSOOOO
make(1).
BBBBSSSSDDDD////GGGGNNNNUUUU CCCCOOOOMMMMPPPPAAAATTTTIIIIBBBBIIIILLLLIIIITTTTYYYY NNNNOOOOTTTTEEEESSSS
o GNU long options (e.g. --help) aren't supported.
o If strip is not installed, -s will give a warning (of course).
PPPPaaaaggggeeee 4444